def build_data():
    # 指定文件路径
    json_file = "../data/tpshop_data.csv"

    # 打开json文件
    test_data = []
    with open(json_file,encoding="utf-8") as f:
        info = f.readlines()
        print(info)
    info = info[1:]
    for user_info in info:
        user_list = user_info.split(",")
        user_list[-1] = int(user_list[-1])
        user_list[-3] = int(user_list[-3])
        test_data.append(user_list)
    return test_data

if __name__ == '__main__':
    print(build_data())